package com.itmuch.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Configuration;

import com.itmuch.config.Configurationl;

import feign.Param;
import feign.RequestLine;



/*
 * Feign的自定义使用：
 * 		
 *    1.创建一个不在主包和质保的类(Configurationl.java)，添加注解@Configuration
 *    2.在UsedrFeignClient接口注解@FeignClient添加configuration=Configurationl.class
 *    3.接口的方法添加注解@RequestLine(value="GET /simple/{id}")	
 *    4.接口的方法参数添加注解@Param("id")
 *    
 * 		
 * */

@EnableEurekaClient
@SpringBootApplication
@EnableFeignClients
public class ConsumeFeigncustmizingApplication {
	public static void main(String[] args) {
		SpringApplication.run(ConsumeFeigncustmizingApplication.class, args);
	}
}
